var promotion = -1, waccident = -1;
function iffactor(){
    promotion = document.getElementById("ifpromotion").value
    waccident = document.getElementById("ifmistake").value
    reaction();
}

var isleft = -1
function ifleft(){
    isleft = document.getElementById("ifleft").value
    draw_piechart()
}

var judgenum = 1;
function judge(){
    judgenum = document.getElementById("mode").value
    draw_stackedbar();
}

// var Color = ['rgb(252,205,229)', 'rgb(253,180,98)']
var Color = ['#DCB2FF', '#00C9AA']
//var Color = ['#FFE4E1', 'rgb(253,180,98)']